<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //页面弹出对话框输入姓名年龄，页面输出姓名年龄
        let uname = prompt('请输入姓名：')
        let age = prompt('请输入年龄：')

        document.write(`我叫${uname}，今年${age}岁了。`)
    </script>
</body>
</html>